package com.newgrand.annexcommon.constant;

public interface StatusConst {

    /**断点上传下载*/
    /**
     * check md5
     */
    public static final int FILE_BREAKPOINT_CHKMD5_NOT_UPLOADED = 1; //未上传
    public static final int FILE_BREAKPOINT_CHKMD5_UPLOADED = 0;     //已上传
    public static final int FILE_BREAKPOINT_CHKMD5_PART_UPLOADED = 2;//上传部分

    /**
     * 上传状态
     */
    public static final int FILE_BREAKPOINT_UPLOAD_SUCCESS_CODE = 11;                  //断点上传成功
    public static final String FILE_BREAKPOINT_UPLOAD_SUCCESS_MSG = "upload success";  //断点上传成功

    public static final int FILE_BREAKPOINT_UPLOAD_FAIL_CODE = 10;                  //断点上传失败
    public static final String FILE_BREAKPOINT_UPLOAD_FAIL_MSG = "upload failed";   //断点上传失败

    public static final int FILE_COMMON_UPLOAD_FAIL_CODE = 12;                      //普通上传失败
    public static final String FILE_COMMON_UPLOAD_FAIL_MSG = "upload failed";       //普通上传失败

    public static final int FILE_UPLOAD_CRT_THUMB_ERR_CODE = 13;                          //创建缩略图异常
    public static final String FILE_UPLOAD_CRT_THUMB_ERR_MSG = "create thumbnail failed"; //创建缩略图异常


    /**
     * 下载状态
     */
    public static final int FILE_BREAKPOINT_DOWNLOAD_SUCCESS_CODE = 21;                    //断点下载成功
    public static final String FILE_BREAKPOINT_DOWNLOAD_SUCCESS_MSG = "download success";  //断点下载成功

    public static final int FILE_BREAKPOINT_DOWNLOAD_FAIL_CODE = 22;                       //断点下载失败
    public static final String FILE_BREAKPOINT_DOWNLOAD_FAIL_MSG = "download fail";        //断点下载失败

    public static final int FILE_COMMON_DOWNLOAD_FAIL_CODE = 23;                           //普通下载失败
    public static final String FILE_COMMON_DOWNLOAD_FAIL_MSG = "upload failed";            //普通下载失败

    /**
     * 拷贝状态
     */
    public static final int FILE_COPY_FAIL_CODE = 31;                             //拷贝失败
    public static final String FILE_COPY_FAIL_MSG = "copy failed";                //拷贝失败

    /**
     * 删除状态
     */
    public static final int FILE_DELETE_FAIL_CODE = 41;                             //删除失败
    public static final String FILE_DELETE_FAIL_MSG = "delete failed";                //删除失败


    /**
     * 异常状态
     */
    public static final int EXCEPTION_NO_STORAGE_STRATEGY_CODE = 101;                              //没有存储策略
    public static final String EXCEPTION_NO_STORAGE_STRATEGY_MSG = "no storage strategy found";    //没有存储策略

    public static final int EXCEPTION_SAVE_FILE_SYSTEM_CODE = 102;                                 //保存文件系统
    public static final String EXCEPTION_SAVE_FILE_SYSTEM_MSG = "save file system";                //保存文件系统

    public static final int EXCEPTION_SAVE_FILE_SYSTEM_MULTI_CODE = 103;                           //分片保存文件系统
    public static final String EXCEPTION_SAVE_FILE_SYSTEM_MULTI_MSG = "save file system multipart";//分片保存文件系统

    public static final int EXCEPTION_SAVE_FILE_SYSTEM_MULTI_THUMB_CODE = 104;                                      //分片保存文件系统缩略图
    public static final String EXCEPTION_SAVE_FILE_SYSTEM_MULTI_THUMB_MSG = "save file system multipart thumb";     //分片保存文件系统缩略图

    public static final int EXCEPTION_QUERY_FILE_SYSTEM_CODE = 105;                                //查询文件系统
    public static final String EXCEPTION_QUERY_FILE_SYSTEM_MSG = "query file system";              //查询文件系统

    public static final int EXCEPTION_QUERY_FILE_SYSTEM_THUMB_CODE = 106;                          //查询文件系统缩略图
    public static final String EXCEPTION_QUERY_FILE_SYSTEM_THUMB_MSG = "query file system thumb";  //查询文件系统缩略图

    public static final int EXCEPTION_SAVE_MONGO_CODE = 107;                                       //保存mongo
    public static final String EXCEPTION_SAVE_MONGO_MSG = "save mongo";                            //保存mongo

    public static final int EXCEPTION_SAVE_MONGO_MULTI_CODE = 108;                                 //分片保存mongo
    public static final String EXCEPTION_SAVE_MONGO_MULTI_MSG = "save mongo multipart";            //分片保存mongo

    public static final int EXCEPTION_SAVE_MONGO_MULTI_THUMB_CODE = 109;                           //分片保存mongo缩略图
    public static final String EXCEPTION_SAVE_MONGO_MULTI_THUMB_MSG = "save mongo multipart thumb";//分片保存mongo缩略图

    public static final int EXCEPTION_QUERY_MONGO_CODE = 110;                                      //查询mongo
    public static final String EXCEPTION_QUERY_MONGO_MSG = "query mongo";                          //查询mongo

    public static final int EXCEPTION_QUERY_MONGO_THUMB_CODE = 111;                                //查询mongo缩略图
    public static final String EXCEPTION_QUERY_MONGO_THUMB_MSG = "query mongo thumb";              //查询mongo缩略图

    public static final int EXCEPTION_SAVE_RELATIONAL_CODE = 112;                                  //保存数据库
    public static final String EXCEPTION_SAVE_RELATIONAL_MSG = "save relational";                  //保存数据库

    public static final int EXCEPTION_SAVE_RELATIONAL_THUMB_CODE = 113;                            //保存数据库缩略图
    public static final String EXCEPTION_SAVE_RELATIONAL_THUMB_MSG = "save relational thumb";      //保存数据库缩略图

    public static final int EXCEPTION_QEURY_RELATIONAL_CODE = 114;                                 //查询数据库
    public static final String EXCEPTION_QEURY_RELATIONAL_MSG = "query relational";                //查询数据库

    public static final int EXCEPTION_QEURY_RELATIONAL_THUMB_CODE = 115;                           //查询数据库缩略图
    public static final String EXCEPTION_QEURY_RELATIONAL_THUMB_MSG = "query relational thumb";    //查询数据库缩略图


    /**
     * 登录状态
     */
    public static final int LOGIN_ERROR_CODE = 301;                                //用户名或密码错误
    public static final String LOGIN_ERROR_MSG = "username or password is wrong";  //用户名或密码错误

    public static final int SESSION_TIMEOUT_CODE = 302;                       //session过期
    public static final String SESSION_TIMEOUT_MSG = "session time out";      //session过期

    /**
     * 数据库测试连接
     */
    public static final String CONNECTION_FAIL_MSG = "connection fail";     //数据库测试连接失败


    /**
     * 数据库数据记录状态
     */
    public static final int STATE_ENALBE = 1; //可用
    public static final int STATE_DISALBE = 0;//不可用
}
